/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-01-24 13:57:43
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-01-24 20:26:06
 * @FilePath: \vue-position\src\api\dao.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

export default {

    // 查找人员信息
    getUser(user) {
        return request({
            url: `/user/getUser`,
            method: 'post',
            data: user,
        })
    },

    // 查找人员位置
    getUserPosition(user) {
        return request({
            url: `/user/getUserPosition`,
            method: 'post',
            data: user,
        })
    },

    // 新增人员信息
    addPositionData(position){
        return request({
            url:'/position/addPositionData',
            method:'post',
            data:position,
        })
    }

}